<?php
require 'include/global.php';
require './include/validate.php';
require './include/all_left.php';
include("FCKeditor/fckeditor.php") ;

require_once 'include/advisory_db.php';


$smarty->display('header.tpl');
      


$rc_fname = $_POST[rc_fname];
$rc_lname = $_POST[rc_lname];
$rc_email = $_POST[rc_email];
$rc_address1 = $_POST[rc_address1];
$rc_address2 = $_POST[rc_address2];
$rc_state = $_POST[rc_state];
$rc_country = $_POST[rc_country];
$rc_city = $_POST[rc_city];
$rc_phone = $_POST[rc_phone];
$rc_phone2 = $_POST[rc_phone2];
$rc_jobtype = $_POST[rc_jobtype];
$rc_jobindustry = $_POST[rc_jobindustry];
$rc_title = $_POST[rc_title];
$rc_yearexp = $_POST[rc_yearexp];
$rc_edulevel = $_POST[rc_edulevel];
$rc_proflicense = $_POST[rc_proflicense];
$rc_mgmt = $_POST[rc_mgmt];
$rc_profit = $_POST[rc_profit];
$rc_spoken = $_POST[rc_spoken];
$rc_prolang = $_POST[rc_prolang];
$rc_ip = $_POST[rc_ip];
$rc_ussecurity = $_POST[rc_ussecurity];
$rc_authorize = $_POST[rc_authorize];
$rc_subject = $_POST[rc_subject];
$rc_detail = $_POST[rc_detail];
$rc_comments = $_POST[rc_comments];
$rc_regtime  = $_POST[rc_regtime];
$rc_upload   = $_POST[rc_upload];
$rc_jobsearchstatus = $_POST[rc_jobsearchstatus];
$rc_describeme = $_POST[rc_describeme];
$rc_favoriatebook = $_POST[rc_favoriatebook];
$rc_highachieve = $_POST[rc_highachieve];
$rc_iplan = $_POST[rc_iplan];
$rc_iliketo = $_POST[rc_iliketo];
$rc_comments = $_POST[rc_comments];
$rc_prvemployer = $_POST[rc_prvemployer];
$rc_prvempstatus = $_POST[rc_prvempstatus];
$rc_professavilable = $_POST[rc_professavilable];
$rc_currentpay  = $_POST[rc_currentpay];
$rc_desiredpay= $_POST[rc_desiredpay];
$rc_benefits= $_POST[rc_benefits];
$rc_schoolattend= $_POST[rc_schoolattend];
$rc_personalweb = $_POST[rc_personalweb];
$rc_private     = $_POST[rc_private];
$rc_updtime     = $_POST[rc_updtime];
$rc_sponsorship = $_POST[rc_sponsorship];
 
		ob_clean();
		ob_start();
		$view = 1;

		$cpforms->formheader(array ('title' => '','name' => 'article','enctype' => 'multipart/form-data'));
		
		$cpforms->longline(array('title'=>"Contact Information"));
		$cpforms->gethightext(array ('text' => "First Name",'name' => "rc_fname",'only' => 1,'value' => "$rc_fname",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Last Name",'name' => "rc_lname",'only' => 1,'value' => "$rc_lname",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Contact Email",'name' => "rc_email",'only' => 1,'value' => "$rc_email",'view' => "$view"));
		$cpforms->gethightext(array ('text' => "Phone",'name' => "rc_phone",'only' => 1,'value' => "$rc_phone",'view' => "$view"));
		
		$cpforms->gethightext(array ('text' => "Subject",'name' => "rc_subject",'only' => 1,'value' => "$rc_subject",'view' => "$view"));
		$cpforms->makefck(array ('text' => "Message Details",'name' => "rc_detail",'id'=>"rc_detail",'value' => stripslashes($rc_detail),'view' => "$view"));


		echo '<tr class="tbhead">
				<td bgcolor="#f0f0f0" align="center" colspan="2">
				<input class="bginput button-secondary" type="button" onclick="window.close()" value=" Close " />
				</td>
				</tr>
				</table></td></tr></form></table>
				';

		$reg_data = ob_get_contents();
		ob_end_clean();

$smarty->display('allleft.tpl');

		if ($err != '')
		{
			$smarty->assign("err", $err);
		}
		$smarty->assign("reg", $reg_data);

		$title   = "Message Preview";
		$smarty->assign('title',$title);
		$smarty->display('reg.tpl');


$smarty->display('allright.tpl');
$smarty->display('footer.tpl');
?>
